package com.model;

import java.io.Serializable;

/**
 * Created by guin_guo on 2015/10/30.
 */
public class Course implements Serializable{
    /**
     * 以下三个字段为以后扩展用
     */
    private int id;
    private int sid;
    private int tid;
    //student account
    private String student;
    //teacher account
    private String teachet;
    //课程名称
    private String name;
    //上课地点
    private String place;
    //上课时间
    private String time;

    //Point
    private int i;
    private int j;

    public Course() {
    }

    public Course(String student, String teachet, String name, String place) {
        this.student = student;
        this.teachet = teachet;
        this.name = name;
        this.place = place;
    }

    public Course(int id, int sid, int tid, String student, String teachet, String name, String place,String time) {
        this.id = id;
        this.sid = sid;
        this.tid = tid;
        this.student = student;
        this.teachet = teachet;
        this.name = name;
        this.place = place;
        this.time = time;
    }

    public int getI() {
        return i;
    }

    public int setI(int i) {
        this.i = i;
        return i;
    }

    public int getJ() {
        return j;
    }

    public int setJ(int j) {
        this.j = j;
        return j;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public String getStudent() {
        return student;
    }

    public void setStudent(String student) {
        this.student = student;
    }

    public String getTeachet() {
        return teachet;
    }

    public void setTeachet(String teachet) {
        this.teachet = teachet;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    @Override
    public String toString() {
        return student +" "+ teachet +" "+ name +" "+ place +" "+ time;
    }
}
